package com.movie.util;

import java.math.BigDecimal;

public class OrderStatistics {
    private Long totalOrders;           // 总订单数
    private Long paidOrders;            // 已支付订单数
    private Long unpaidOrders;          // 未支付订单数
    private BigDecimal totalRevenue;    // 总收入
    private BigDecimal todayRevenue;    // 今日收入
    private Long todayOrders;           // 今日订单数
    private Long totalUsers;            // 总用户数
    private Long totalSeats;            // 总售出座位数

    public OrderStatistics() {}

    public OrderStatistics(Long totalOrders, Long paidOrders, Long unpaidOrders, 
                          BigDecimal totalRevenue, BigDecimal todayRevenue, 
                          Long todayOrders, Long totalUsers, Long totalSeats) {
        this.totalOrders = totalOrders;
        this.paidOrders = paidOrders;
        this.unpaidOrders = unpaidOrders;
        this.totalRevenue = totalRevenue;
        this.todayRevenue = todayRevenue;
        this.todayOrders = todayOrders;
        this.totalUsers = totalUsers;
        this.totalSeats = totalSeats;
    }

    // Getters and Setters
    public Long getTotalOrders() {
        return totalOrders;
    }

    public void setTotalOrders(Long totalOrders) {
        this.totalOrders = totalOrders;
    }

    public Long getPaidOrders() {
        return paidOrders;
    }

    public void setPaidOrders(Long paidOrders) {
        this.paidOrders = paidOrders;
    }

    public Long getUnpaidOrders() {
        return unpaidOrders;
    }

    public void setUnpaidOrders(Long unpaidOrders) {
        this.unpaidOrders = unpaidOrders;
    }

    public BigDecimal getTotalRevenue() {
        return totalRevenue;
    }

    public void setTotalRevenue(BigDecimal totalRevenue) {
        this.totalRevenue = totalRevenue;
    }

    public BigDecimal getTodayRevenue() {
        return todayRevenue;
    }

    public void setTodayRevenue(BigDecimal todayRevenue) {
        this.todayRevenue = todayRevenue;
    }

    public Long getTodayOrders() {
        return todayOrders;
    }

    public void setTodayOrders(Long todayOrders) {
        this.todayOrders = todayOrders;
    }

    public Long getTotalUsers() {
        return totalUsers;
    }

    public void setTotalUsers(Long totalUsers) {
        this.totalUsers = totalUsers;
    }

    public Long getTotalSeats() {
        return totalSeats;
    }

    public void setTotalSeats(Long totalSeats) {
        this.totalSeats = totalSeats;
    }

    @Override
    public String toString() {
        return "OrderStatistics{" +
                "totalOrders=" + totalOrders +
                ", paidOrders=" + paidOrders +
                ", unpaidOrders=" + unpaidOrders +
                ", totalRevenue=" + totalRevenue +
                ", todayRevenue=" + todayRevenue +
                ", todayOrders=" + todayOrders +
                ", totalUsers=" + totalUsers +
                ", totalSeats=" + totalSeats +
                '}';
    }
}